From edf7c3b9a738c1bd31e23da2b3ae6c6782e91f84 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Thu, 31 Jul 2003 09:49:02 +0000 Subject: [PATCH] bitkeeper revision 1.390 (3f28e60en8ngkjURAmEySVpMK3U5PQ) dev.c, perfc_defn.h: Little perfctr addition. --- xen/include/xeno/perfc_defn.h | 3 ++- xen/net/dev.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/include/xeno/perfc_defn.h b/xen/include/xeno/perfc_defn.h index ad6eaaebf8..2c53e8334d 100644 --- a/xen/include/xeno/perfc_defn.h +++ b/xen/include/xeno/perfc_defn.h @@ -10,7 +10,8 @@ PERFCOUNTER_CPU( sched_run2, "sched: runs through scheduler" ) PERFCOUNTER_CPU( sched_ctx, "sched: context switches" ) PERFCOUNTER( net_hypercalls, "network hypercalls" ) -PERFCOUNTER( net_rx_capacity_drop, "net rx capacity drop" ) +PERFCOUNTER( net_rx_congestion_drop, "net rx congestion drops" ) +PERFCOUNTER( net_rx_capacity_drop, "net rx capacity drops" ) PERFCOUNTER( net_rx_delivered, "net rx delivered" ) PERFCOUNTER( net_rx_tlbflush, "net rx tlb flushes" ) PERFCOUNTER( net_tx_transmitted, "net tx transmitted" ) diff --git a/xen/net/dev.c b/xen/net/dev.c index a53136deaa..54b73bbf0a 100644 --- a/xen/net/dev.c +++ b/xen/net/dev.c @@ -615,7 +615,7 @@ int netif_rx(struct sk_buff *skb) /* This oughtn't to happen, really! */ if ( unlikely(skb_queue_len(q) > 100) ) { - printk("Congestion -- packet dropped!!\n"); + perfc_incr(net_rx_congestion_drop); return NET_RX_DROP; } -- 2.30.2